package cn.always.xiajia.framework.common.constant;

public class Constants {

	/**
	 * UTF-8 字符集
	 */
	public static final String UTF8 = "UTF-8";

	/**
	 * GBK 字符集
	 */
	public static final String GBK = "GBK";

	/**
	 * http请求
	 */
	public static final String HTTP = "http://";

	/**
	 * https请求
	 */
	public static final String HTTPS = "https://";

	public static final String short_message_verify = "14878353";// 短信验证码模板id

	public static final Long admin_id = 1L;// 默认超级用户id

	public static final String admin_name = "超级管理员";// 默认超级用户名称

	public static final String admin_code = "Admin";// 默认超级用户编码

	public static final String admin_userType = "A";// 超级用户角色

	public static final String pw = "123456";// 默认密码

	// application.fs.server.dir默认附件上传位置
	public static final String serverDir = "/deploy/upload";

	// 前端报错编码
	public static final String SYSTEM_ERROR = "C00001";
	public static final String SYSTEM_ERROR_NAME = "系统异常";

	public static final String CUSTOM_ERROR = "C99999";
	public static final String CUSTOM_ERROR_NAME = "自定义异常";

	public static final String PARAM_BIND_ERROR = "C00003";
	public static final String PARAM_BIND_ERROR_NAME = "参数绑定错误";

	public static final String PARAM_VALID_ERROR = "S00004";
	public static final String PARAM_VALID_ERROR_NAME = "参数校验错误";

	public static final String JSON_PARSE_ERROR = "S00005";
	public static final String JSON_PARSE_ERROR_NAME = "JSON转换异常";

	public static final String CODE_NOT_FOUND = "S00006";
	public static final String CODE_NOT_FOUND_NAME = "根据编码没有查询到对象";

	public static final String ID_NOT_FOUND = "S00007";
	public static final String ID_NOT_FOUND_NAME = "根据ID没有查询到对象";

	public static final String PARAM_NULL = "S00008";
	public static final String PARAM_NULL_NAME = "参数不能为空";

}
